package chenji.gunapi.bullet;

import org.bukkit.entity.Arrow;
import org.bukkit.entity.Player;

import chenji.gunapi.gun.Gun;

public final class Bullet {
	private Arrow arrow;
	private Gun g;
	private int damage;
	private Player damager;
	private boolean isHitEvtity = false;

	public Bullet(Gun g, int damage, Arrow arrow, Player Damager) {
		this.g = g;
		this.arrow = arrow;
		this.damage = damage;
		this.damager = Damager;
	}

	public void hitEntity() {
		this.isHitEvtity = true;
	}

	public boolean isHitEntity() {
		return this.isHitEvtity;
	}

	public Arrow getArrow() {
		return this.arrow;
	}

	public Gun getGun() {
		return this.g;
	}

	public int getDamage() {
		return this.damage;
	}

	public Player getDamager() {
		return this.damager;
	}
}
